package com.blic.utils;

import java.util.HashMap;
import java.util.Map;


public class Status {

	public enum CondidataSource {
		// 用户来源 1 微信 2 filefinder 0 本地录入
		FILEFINDER("2", "fileFinder"), WEXIN("1", "weixin"), LOCAL("0", "bendi");

		private CondidataSource(String key, String name) {
			this.key = key;
			this.name = name;
		}

		private String key;

		private String name;

		@Override
		public String toString() {
			return key;
		}

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}
		
		private static Map<String, String> map = new HashMap<String, String>();
		static {
			for (CondidataSource legEnum : CondidataSource.values()) {
				map.put(legEnum.key, legEnum.name);
			}
		}

		public static String valueFor(String key) {
			return map.get(key);
		}

	}

	public enum UserStatus {
		// 用户状态，是否确认 0 未确认 1 已确认
		noQueRen("0", "noQueRen"), QueRen("1", "QueRen");

		private UserStatus(String key, String name) {
			this.key = key;
			this.name = name;
		}

		private String key;

		private String name;

		@Override
		public String toString() {
			return key;
		}

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		private static Map<String, String> map = new HashMap<String, String>();
		static {
			for (UserStatus legEnum : UserStatus.values()) {
				map.put(legEnum.key, legEnum.name);
			}
		}

		public static String valueFor(String key) {
			return map.get(key);
		}

	}

	public enum ReplyStatus {
		// 0未推送、1已推送、2已应答、3已确认、4已失效
		notpush("0", "notpush"), push("1", "push"), repled("2", "repled"), queren("3", "queren"), close("4", "close");

		private ReplyStatus(String key, String name) {
			this.key = key;
			this.name = name;
		}

		private String key;

		private String name;

		@Override
		public String toString() {
			return key;
		}

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		private static Map<String, String> map = new HashMap<String, String>();

		static {
			for (ReplyStatus legEnum : ReplyStatus.values()) {
				map.put(legEnum.key, legEnum.name);
			}
		}

		public static String valueFor(String key) {
			return map.get(key);
		}
	}

	public enum ReqStatus {
		// 0待审核、1审核拒绝、2撮合中、3关闭
		noAudit("0", "noAudit"), refuse("1", "refuse"), accept("2", "accept"), close("3", "close");

		private ReqStatus(String key, String name) {
			this.key = key;
			this.name = name;
		}

		private String key;

		private String name;

		@Override
		public String toString() {
			return key;
		}

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		private static Map<String, String> map = new HashMap<String, String>();

		static {
			for (ReqStatus legEnum : ReqStatus.values()) {
				map.put(legEnum.key, legEnum.name);
			}
		}

		public static String valueFor(String key) {
			return map.get(key);
		}
	}
	
	public enum NotifyStatus {
		// 0未推送 1 已推送
		no("0", "no"), yes("1", "yes") ;
		
		private NotifyStatus(String key, String name) {
			this.key = key;
			this.name = name;
		}
		
		private String key;
		
		private String name;
		
		@Override
		public String toString() {
			return key;
		}
		
		public String getKey() {
			return key;
		}
		
		public void setKey(String key) {
			this.key = key;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
		
		private static Map<String, String> map = new HashMap<String, String>();
		
		static {
			for (ReqStatus legEnum : ReqStatus.values()) {
				map.put(legEnum.key, legEnum.name);
			}
		}
		
		public static String valueFor(String key) {
			return map.get(key);
		}
	}
	
	/**
	 * 报名状态  1 待审核、2 审核通过、3 审核拒绝、4 签到
	 * @author douglas
	 *
	 */
	public enum ActReqStatus {
		 
		notAudit("1", "notAudit"), yes("2", "yes"),no("3","no"),checkIn("4","checkIn") ;
		
		private ActReqStatus(String key, String name) {
			this.key = key;
			this.name = name;
		}
		
		private String key;
		
		private String name;
		
		@Override
		public String toString() {
			return key;
		}
		
		public String getKey() {
			return key;
		}
		
		public void setKey(String key) {
			this.key = key;
		}
		
		public String getName() {
			return name;
		}
		
		public void setName(String name) {
			this.name = name;
		}
		
		private static Map<String, String> map = new HashMap<String, String>();
		
		static {
			for (ReqStatus legEnum : ReqStatus.values()) {
				map.put(legEnum.key, legEnum.name);
			}
		}
		
		public static String valueFor(String key) {
			return map.get(key);
		}
	}

}
